var webpack = require('webpack')
  , path = require('path')
  , _ = require('underscore')
  , devConfig = require('./webpack.dev')

module.exports = _.extend({},devConfig,{
  plugins:devConfig.plugins.concat([
    new webpack.optimize.UglifyJsPlugin({
      sourceMap:false
    }),
    new webpack.DefinePlugin({
      'process.env.NODE_ENV': '"production"'
    })
  ]),
  output:_.extend({},devConfig.output,{
    path:path.join(__dirname,'dist','js'),
    pathinfo:false,
    filename:"[name]-[chunkhash].js"
  })
})
